Developer Documentation

QuickTime 4 API Documentation

3D Graphics Programming with QuickDraw 3D 1.5.4

Previous | QD3D Book | Overview | Chapter Contents | Next |

Image Dimensions Objects

Labels

ASCII
ImageDimensions
Binary
imdm ( = 0x696D646D )

Data Format

Uns32               width
Uns32               height
width
The preferred width, in pixels, of the displayed portion of an image.
height
The preferred height, in pixels, of the displayed portion of an image.

Data Size

8

Description

An image dimensions object is used to specify the height and width of the rectangular portion of an image that is to be displayed. The height and width of an image dimensions object are measured from the upper-left corner of the image to which that image dimensions object is applied. Normally, an image is rasterized before an image dimensions object is applied to it. An image dimensions object may be used together with an image mask: the former may be used to clip an image, and the latter may be used to filter the clipped image.

Parent Hierarchy

Data, view hints data.

Parent Objects

View hints. An image dimensions object always has a parent object.

Child Objects

None.

Example

Container (
    ViewHints ( )
    ImageDimensions ( 32 32 )
    ImageMask ( ... )
)

© 1997 Apple Computer, Inc.

Previous | QD3D Book | Overview | Chapter Contents | Next |